
//delay的实现  ：实现异步
export const delay = function (ms) {
    return new Promise((resolve,reject) => {
        setTimeout(() => {
          resolve(ms)
        },ms)
    })
};

export const readFile = function (filename,callback) {
    setTimeout(() => {
        callback(null,filename+' - content')
    },1000)
};





